import { _decorator, Button, Component, isValid, setDisplayStats, sys } from 'cc';
const { ccclass, property } = _decorator;


setDisplayStats(false);

@ccclass('UIRank')
export class UIRank extends Component {

    private static _ins: UIRank = null;
    public static get ins() {
        if (UIRank._ins && isValid(UIRank._ins.node, true)) return UIRank._ins;
        return null;
    }

    @property({ type: Button, tooltip:'关闭按钮' })
    btnClose: Button = null;
    
    onBtnClose() {

    }

    protected start(): void {
        
        if (sys.platform == sys.Platform.WECHAT_GAME) {
            globalThis.wx.loadFont('openDataContext/font/AlibabaPuHuiTiBold.ttf');
        }

    }




}

